package com.zuosh.utils;

import java.util.List;

/**
 * Created by zuoshuai on 2017/3/17.
 */
public class ListsUtil {
    /**
     * 判断list是否是空
     *
     * @param list
     * @return
     */
    public static boolean isEmpty(List list) {
        return list == null || list.size() == 0;
    }

    /**
     * 判断list 是否非空
     *
     * @param list
     * @return
     */
    public static boolean isNotEmpty(List list) {
        return !isEmpty(list);
    }
}
